package com.example.api.dao;

import com.example.api.model.entity.Purchase;

import java.util.List;

public interface PurchaseDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Purchase record);

    int insertSelective(Purchase record);

    Purchase selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Purchase record);

    int updateByPrimaryKey(Purchase record);

    List<Purchase> findAll();

    Purchase selectByCid(Integer cid);

}